public class Submarine4 extends Boat implements Diver{
    public Submarine4(String name){
        super(name);
    }


    @Override
    public void dive(){
        System.out.printf("潜水艇 %s 潜行 %n",name);
    }
}

